# Contributor: Alex Dowad <alexinbeijing@gmail.com>
# Maintainer: Alex Dowad <alexinbeijing@gmail.com>
pkgname=lua-resty-postgres
pkgver=0_git20130420
pkgrel=1
_gitrev=19bc847543381cb4a6142d347d494f4c37054a47
pkgdesc="Nonblocking Lua PostgreSQL driver library"
url="https://github.com/azurewang/lua-resty-postgres"
arch="noarch"
license="BSD"
options="!check" # Upstream does not have any test suite
source="
	$pkgname-$pkgver.tar.gz::https://github.com/azurewang/lua-resty-postgres/archive/$_gitrev.tar.gz
	0001-Support-trust-authentication-method.patch"
builddir="$srcdir/lua-resty-postgres-$_gitrev"

package() {
	mkdir -p "$pkgdir/usr/share/lua/common"
	cp -r ./lib/resty "$pkgdir/usr/share/lua/common"
}

sha512sums="
503ded701af082dcefdbdb27e231a9289430689efe20c2aea7c69fabdfa35fee43ff226e6cc6b6a5bde15102692f851fb6524b57ba5274962df7d645b4481ed2  lua-resty-postgres-0_git20130420.tar.gz
a6cdc79ca76e0afb80aeef1f9c7cb2f6803de168f8c712f2ed4f6e7c86cf9390aa2bf63402228c595d2516f8fae80f91ecb1e01f27bef4534becee8b86f6e797  0001-Support-trust-authentication-method.patch
"
